package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.SysRole;

import java.util.List;

public interface SysRoleService {
    // 获取所有角色
    public List<SysRole> findAll() throws Exception;
    //新增或新增角色
    public boolean upInsert(SysRole sysRole) throws Exception;
    //删除角色
    public boolean delete(Long id) throws Exception;
    //根据角色编号查询角色信息
    public SysRole bian(String code) throws Exception;
    //根据id查询角色信息
    public SysRole getById(Long id) throws Exception;
}
